Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: separate repeated steps as individual functions #562

Merged
merged 43 commits into from
Sep 12, 2024

Conversation

JeffreyDallas
Copy link
Contributor

Description

This pull request changes the following:

  • Separate repeated steps as individual functions

Related Issues

JeffreyDallas and others added 30 commits September 4, 2024 14:40
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
…vm-debugger

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>

# Conflicts:
#	test/e2e/commands/node-local-ptt.test.mjs
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
…vm-debugger

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>

# Conflicts:
#	src/commands/node.mjs
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
…vm-debugger

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>

# Conflicts:
#	src/commands/flags.mjs
#	src/commands/network.mjs
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas JeffreyDallas requested review from leninmehedy and a team as code owners September 11, 2024 13:24
@JeffreyDallas JeffreyDallas self-assigned this Sep 11, 2024
@JeffreyDallas JeffreyDallas marked this pull request as draft September 11, 2024 13:24
Copy link
Contributor

github-actions bot commented Sep 11, 2024

Unit Test Results - Linux

  1 files   19 suites   27s ⏱️
122 tests 122 ✅ 0 💤 0 ❌
148 runs  148 ✅ 0 💤 0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 11, 2024

Unit Test Results - Windows

  1 files   19 suites   53s ⏱️
122 tests 122 ✅ 0 💤 0 ❌
148 runs  148 ✅ 0 💤 0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Copy link
Contributor

github-actions bot commented Sep 11, 2024

E2E Node PEM Stop Tests Coverage Report

13 tests   13 ✅  2m 37s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 11, 2024

E2E Relay Tests Coverage Report

1 files  1 suites   2m 43s ⏱️
6 tests 6 ✅ 0 💤 0 ❌
7 runs  7 ✅ 0 💤 0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 11, 2024

E2E Node PEM Kill Tests Coverage Report

13 tests   13 ✅  2m 58s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 11, 2024

E2E Mirror Node Tests Coverage Report

 1 files   1 suites   3m 50s ⏱️
13 tests 13 ✅ 0 💤 0 ❌
14 runs  14 ✅ 0 💤 0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 11, 2024

E2E Node Local Build Tests Coverage Report

10 tests   10 ✅  2m 33s ⏱️
 2 suites   0 💤
 1 files     0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 11, 2024

E2E Tests Coverage Report

58 tests   58 ✅  4m 23s ⏱️
 9 suites   0 💤
 1 files     0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 11, 2024

E2E Node Update Tests Coverage Report

12 tests   12 ✅  4m 36s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 11, 2024

E2E Node Delete Tests Coverage Report

10 tests   10 ✅  5m 48s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 11, 2024

E2E Node Add Tests Coverage Report

22 tests   22 ✅  12m 1s ⏱️
 2 suites   0 💤
 1 files     0 ❌

Results for commit 2df8689.

♻️ This comment has been updated with latest results.

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas JeffreyDallas marked this pull request as ready for review September 11, 2024 15:27
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for 36ce6041 85.71%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (36ce604) Report Missing Report Missing Report Missing
Head commit (2df8689) 3917 3111 79.42%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#562) 140 120 85.71%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 98.75776% with 2 lines in your changes missing coverage. Please review.

Project coverage is 82.60%. Comparing base (853eb9e) to head (2df8689).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/commands/node.mjs 98.75% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #562      +/-   ##
==========================================
- Coverage   83.15%   82.60%   -0.56%     
==========================================
  Files          36       36              
  Lines        4815     4714     -101     
  Branches      667      749      +82     
==========================================
- Hits         4004     3894     -110     
- Misses        811      820       +9     
Files with missing lines Coverage Δ
src/commands/node.mjs 82.80% <98.75%> (-2.28%) ⬇️

... and 3 files with indirect coverage changes

Impacted file tree graph

@jeromy-cannon
Copy link
Contributor

LGTM, but I want to let @Ivo-Yankov merge #533 first, as we need that for Simi's team.

@jeromy-cannon jeromy-cannon merged commit dcbbe5e into main Sep 12, 2024
40 of 41 checks passed
@jeromy-cannon jeromy-cannon deleted the 00558-D-steps-reuse branch September 12, 2024 17:23
swirlds-automation added a commit that referenced this pull request Sep 17, 2024
## [0.30.0](v0.29.0...v0.30.0) (2024-09-17)

### Features

* add node add-prepare and node add-execute commands ([#533](#533)) ([a184775](a184775))
* add support for attach jvm debugger ([#549](#549)) ([35a0075](35a0075))
* add the autogen tool to easily add e2e tests and run it for the first time & fix copyFrom ([#566](#566)) ([e6c79eb](e6c79eb))
* **network node livecheck:** implement a functionality to determine network node activeness with prometheus metrics ([#567](#567)) ([6120775](6120775))
* remove pfx support ([#537](#537)) ([aff5f63](aff5f63))

### Bug Fixes

* aligned test names to naming pattern ([#554](#554)) ([365f724](365f724))
* download application.properties file if it was generated by hedera app during handling address book change ([#571](#571)) ([35c73d8](35c73d8))
* **functionality:** removed the 'z' from the 'tar' command on the K8.copyFrom ([#561](#561)) ([796474b](796474b))
* have update readme run after version calculation in deploy and release ([#586](#586)) ([42e1685](42e1685))
* jsdoc errors due to unrecognized format ([#557](#557)) ([da7113b](da7113b))
* remove of using agreement key in hedera repo test ([#563](#563)) ([05c5517](05c5517))
* separate repeated steps as individual functions ([#562](#562)) ([dcbbe5e](dcbbe5e))
@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clean up code to reuse some repeated node command steps
3 participants